package oz.mano.online.protoStuf;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ProtoStufTest {
	
	public static void main(String[] args){
		InnerPo innerPo = new InnerPo(1, "InnerPo1");
		List<String> list = Arrays.asList();
		list.add("a");
		list.add("b");
		Po po = new Po(1, "Fong", "备注", 24, new int[]{1,2,3,4},innerPo,list);
		byte[] seirializer = ProtoStufUtil.seirializer(po);
		System.out.println("siez =======" +seirializer.length);
		
		Po deserializer = ProtoStufUtil.deserializer(seirializer, Po.class);
		System.out.println(deserializer);
	}

}
